<?php
	include '../include/function.php';

	$install_array = array(
		'Users'=>'Special: users',
		'Templates'=>'Special: templates',
	);
	
	//安装特殊页面
	foreach($install_array as $key=>$val){
		$query='select id from special_page '
			. "where name='$key' ";
		$ret=oj_query($query);
		$row=mysql_fetch_row($ret);
		if(!isset($row[0])) {
			$node_id=easy_insert_node($key,$val,-1,0,'no');
			$query="insert into special_page (id, name) values ($node_id, '$key') ";
			$ret=oj_query($query);
		}
	}

	echo 'install success!';
?>

